package com.aliyun.heiyu.powermaster.server.dao;

import com.aliyun.heiyu.powermaster.server.dao.entity.StateGridCollectInfoEntity;
import com.aliyun.heiyu.powermaster.server.dao.entity.WarningEntity;

import java.util.List;
import java.util.Map;

public interface WarningDao {

    boolean insert(WarningEntity entity);

    List<WarningEntity> findAll(String state);

    boolean update(int id,String state);

    WarningEntity findOne(Integer id);

    WarningEntity findByEqAndType(String equipmentNumber,String type);

    Map<String, String> findWarningCount();

    boolean updateWarningTime(int id);

    Map<String, String> findCurrentOnePower();

    Map<String, String> findSetAlarmLevel();

    boolean updateSetAlarmLevel(String level);

    List<StateGridCollectInfoEntity> findMaxServer();

    boolean existWarn(String sn,String type);
}
